package com.itheima.dao;

import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface MenuDao {
    @Select("select tm.path,tm.name title,tm.icon,tm.path id from t_menu tm ,t_role_menu trm where trm.role_id =#{id} and trm.menu_id = tm.id and tm.level='1'")
    List<Map<String,Object>> findByRoleId(Integer id);
    @Select("select tm.path ,tm.name title,tm.linkUrl,tm.path id from t_menu tm where tm.level=#{id} and tm.path like #{like} ")
    List<Map<String,Object>> findByPriority(Map<String, Object> integerMap);
}
